﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200035D RID: 861
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ContentPackageUnlockScRsp : IMessage<ContentPackageUnlockScRsp>, IMessage, IEquatable<ContentPackageUnlockScRsp>, IDeepCloneable<ContentPackageUnlockScRsp>, IBufferMessage
	{
		// Token: 0x17000B23 RID: 2851
		// (get) Token: 0x0600269A RID: 9882 RVA: 0x0006C371 File Offset: 0x0006A571
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ContentPackageUnlockScRsp> Parser
		{
			get
			{
				return ContentPackageUnlockScRsp._parser;
			}
		}

		// Token: 0x17000B24 RID: 2852
		// (get) Token: 0x0600269B RID: 9883 RVA: 0x0006C378 File Offset: 0x0006A578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ContentPackageUnlockScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B25 RID: 2853
		// (get) Token: 0x0600269C RID: 9884 RVA: 0x0006C38A File Offset: 0x0006A58A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ContentPackageUnlockScRsp.Descriptor;
			}
		}

		// Token: 0x0600269D RID: 9885 RVA: 0x0006C391 File Offset: 0x0006A591
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageUnlockScRsp()
		{
		}

		// Token: 0x0600269E RID: 9886 RVA: 0x0006C399 File Offset: 0x0006A599
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageUnlockScRsp(ContentPackageUnlockScRsp other) : this()
		{
			this.contentId_ = other.contentId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600269F RID: 9887 RVA: 0x0006C3CA File Offset: 0x0006A5CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageUnlockScRsp Clone()
		{
			return new ContentPackageUnlockScRsp(this);
		}

		// Token: 0x17000B26 RID: 2854
		// (get) Token: 0x060026A0 RID: 9888 RVA: 0x0006C3D2 File Offset: 0x0006A5D2
		// (set) Token: 0x060026A1 RID: 9889 RVA: 0x0006C3DA File Offset: 0x0006A5DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ContentId
		{
			get
			{
				return this.contentId_;
			}
			set
			{
				this.contentId_ = value;
			}
		}

		// Token: 0x17000B27 RID: 2855
		// (get) Token: 0x060026A2 RID: 9890 RVA: 0x0006C3E3 File Offset: 0x0006A5E3
		// (set) Token: 0x060026A3 RID: 9891 RVA: 0x0006C3EB File Offset: 0x0006A5EB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060026A4 RID: 9892 RVA: 0x0006C3F4 File Offset: 0x0006A5F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ContentPackageUnlockScRsp);
		}

		// Token: 0x060026A5 RID: 9893 RVA: 0x0006C402 File Offset: 0x0006A602
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ContentPackageUnlockScRsp other)
		{
			return other != null && (other == this || (this.ContentId == other.ContentId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060026A6 RID: 9894 RVA: 0x0006C440 File Offset: 0x0006A640
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ContentId != 0U)
			{
				num ^= this.ContentId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060026A7 RID: 9895 RVA: 0x0006C498 File Offset: 0x0006A698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060026A8 RID: 9896 RVA: 0x0006C4A0 File Offset: 0x0006A6A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060026A9 RID: 9897 RVA: 0x0006C4AC File Offset: 0x0006A6AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ContentId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.ContentId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060026AA RID: 9898 RVA: 0x0006C508 File Offset: 0x0006A708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ContentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ContentId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060026AB RID: 9899 RVA: 0x0006C560 File Offset: 0x0006A760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ContentPackageUnlockScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ContentId != 0U)
			{
				this.ContentId = other.ContentId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060026AC RID: 9900 RVA: 0x0006C5B0 File Offset: 0x0006A7B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060026AD RID: 9901 RVA: 0x0006C5BC File Offset: 0x0006A7BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.ContentId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000F7B RID: 3963
		private static readonly MessageParser<ContentPackageUnlockScRsp> _parser = new MessageParser<ContentPackageUnlockScRsp>(() => new ContentPackageUnlockScRsp());

		// Token: 0x04000F7C RID: 3964
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F7D RID: 3965
		public const int ContentIdFieldNumber = 9;

		// Token: 0x04000F7E RID: 3966
		private uint contentId_;

		// Token: 0x04000F7F RID: 3967
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04000F80 RID: 3968
		private uint retcode_;
	}
}
